<!-- $Id: brand_list.htm 15898 2009-05-04 07:25:41Z liuhui $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<!-- 渠道搜索 -->
<form method="post" action="" name="listForm">
<!-- start brand list -->
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th>{$lang.channel_name}</th>
      <th>{$lang.channel_desc}</th>
      <th>{$lang.channel_account}</th>
      <th>{$lang.channel_password}</th>
      <th>{$lang.channel_status}</th>
      <th>{$lang.handler}</th>
    </tr>
    {foreach from=$channel_list item=channel}
    <tr>
      <td class="first-cell">
        <span onclick="javascript:listTable.edit(this, 'edit_channel_name', {$channel.id})">{$channel.name|escape:html}</span>
      </td>
      <td align="left">{$channel.desc|truncate:36}</td>
      <td><span onclick="javascript:listTable.edit(this, 'edit_channel_account', {$channel.account})">{$channel.account}</span></td>
      <td><span onclick="javascript:listTable.edit(this, 'edit_channel_password', {$channel.password})">{$channel.password}</span></td>
   
      <td align="center">{if $channel.status eq -1}{$lang.channel_status_01}{elseif $channel.status eq 0}{$lang.channel_status_0}{else}{$lang.channel_status_1}{/if} </td>
      <td align="center">
            <a href="channel.php?act=edit&id={$channel.id}" title="{$lang.connect}">{$lang.connect}</a>
      </td>
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
    {/foreach}
    <tr>
      <td align="right" nowrap="true" colspan="6">
      {include file="page.htm"}
      </td>
    </tr>
  </table>

{if $full_page}
<!-- end brand list -->
</div>
</form>

<script type="text/javascript" language="javascript">
  <!--
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

  {literal}
  onload = function()
  {
      // 开始检查订单
      startCheckOrder();
  }
  {/literal}
  //-->
</script>
{include file="pagefooter.htm"}
{/if}